
// const { Sequelize, DataTypes } = require("sequelize");
const { STRING, INTEGER } = require('../types')

module.exports = (sequelize) => {
  const staff = sequelize.define(
    'staff',
    {// 在这里定义模型属性
      id: {
        type: INTEGER,
        primaryKey:true,
        autoIncrement:true,
        allowNull:false
      },
      name: {
        type: STRING,
      },
      phone: {
        type: STRING,
      },
      role: {
        type: STRING,
      }
    }, 
    {
    tableName: "sys_work_user",//直接提供表名
    timestamps: false
   }
  );
  return staff
}
